import React from 'react';
import NewsPublish from "../../../components/publish-manage/NewsPublish";
import usePublish from "../../../components/publish-manage/usePublish";
import {Button} from "antd";

export default function Unpublished () {

    const {dataSource,publishNews} = usePublish(1)

    return (
        <div>
            <NewsPublish dataSource={dataSource} button={(id)=><Button type={'primary'} onClick={()=>publishNews(id)}>发布</Button>}/>
        </div>
    );
}